package student.aistar.entity;


import java.util.Date;
import java.util.List;

public class User {

  private long id;
  private String username;
  private String password;
  private String email;
  private Date createDate;
  private List<TVideo> videoList;

  public List<TVideo> getVideoList() {
    return videoList;
  }

  public void setVideoList(List<TVideo> videoList) {
    this.videoList = videoList;
  }

  public User() {
  }

  public User(long id, String username, String password, String email, Date createDate) {
    this.id = id;
    this.username = username;
    this.password = password;
    this.email = email;
    this.createDate = createDate;
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }


  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }


  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }


  public Date getCreateDate() {
    return createDate;
  }

  public void setCreateDate(Date createDate) {
    this.createDate = createDate;
  }

  @Override
  public String toString() {
    final StringBuilder sb = new StringBuilder("User{");
    sb.append("id=").append(id);
    sb.append(", username='").append(username).append('\'');
    sb.append(", password='").append(password).append('\'');
    sb.append(", email='").append(email).append('\'');
    sb.append(", createDate=").append(createDate);
    sb.append('}');
    return sb.toString();
  }
}
